home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI VBL Sample 06⁄07 ƒ / MakeFile next >
Encoding:
Makefile  |  1994-06-16  |  3.0 KB  |  138 lines  |  [TEXT/MPS ]

  1. #
  2. # SCSI VBL Sample
  3. # Copyright © 1993-94, Apple Computer Inc.
  4. # All rights reserved.
  5. #
  6. # Note: this requires the Macintosh on Risc Toolkit.
  7. # Power Macintosh does not build yet as the scsi.h file does not
  8. # include necessary PPC-specific information.
  9. #
  10. #
  11. Src                    =    ":Src:"
  12. Obj                    =    ":Obj:"
  13. M68Objects                =                    ∂
  14.         {Obj}AsyncSCSIPresent.c.mo            ∂
  15.         {Obj}SCSIVBLSample.c.mo
  16.  
  17. PPCObjects                =                    ∂
  18.         {Obj}AsyncSCSIPresent.c.po            ∂
  19.         {Obj}SCSIVBLSample.c.po
  20.  
  21. #
  22. # Directory dependencies. "Everything in the {Obj} directory depends on something
  23. # in the {Src} directory." Note: you can throw away the contents of the {Obj}
  24. # directory if you want to rebuild from scratch.
  25. #
  26. {Obj}            ƒ    {Src}
  27.  
  28. #
  29. # Compiler dependencies -- common to all compilations The idea here is that all
  30. # sources are stored in the {Src} subdirectory, and all objects and code resources
  31. # output by the linker or Rez are stored in the {Obj} subdirectory.
  32. #
  33. .c.mo ƒ .c                                    ∂
  34.         {Src}SCSI.h                            ∂
  35.         {Src}SCSIVBLSample.h
  36.     C {COptions}                            ∂
  37.         -d MPW=1                            ∂
  38.         -o {TargDir}{Default}.c.mo            ∂
  39.         {DepDir}{Default}.c
  40.  
  41. .c.po ƒ .c                                    ∂
  42.         {Src}SCSI.h                            ∂
  43.         {Src}SCSIVBLSample.h
  44.     PPCC -sym on -appleext on -w off -d MPW    ∂
  45.         -o {TargDir}{Default}.c.po            ∂
  46.         {DepDir}{Default}.c
  47.  
  48. #
  49. # Build the MetroWerks resources
  50. #
  51. MetroWerks ƒ                                ∂
  52.     "SCSI VBLSample.µ.rsrc"
  53.         echo "MetroWerks resources created"
  54.  
  55. #
  56. # Build the application.
  57. #
  58. "SCSI VBL Sample MPW" ƒƒ                    ∂
  59.         MakeFile                            ∂
  60.         "SCSI VBLSample.µ.rsrc"                ∂
  61.         {Src}SCSIVBLSample.r
  62.     Rez                                        ∂
  63.         {Src}SCSIVBLSample.r                ∂
  64.         -append                                ∂
  65.         -t APPL                                ∂
  66.         -i "{CIncludes}"                    ∂
  67.         -i "{RIncludes}"                    ∂
  68.         -o {targ}
  69.  
  70. "SCSI VBL Sample MPW" ƒƒ                    ∂
  71.         MakeFile                            ∂
  72.         {M68Objects}
  73.     Link                                    ∂
  74.         -t APPL                                ∂
  75.         {M68Objects}                        ∂
  76.         "{Libraries}"Runtime.o                ∂
  77.         "{Libraries}"Interface.o            ∂
  78.         -o {targ}
  79.  
  80. "SCSI VBL Sample Fat" ƒƒ                    ∂
  81.         MakeFile                            ∂
  82.         {Src}SCSIVBLSample.r
  83.     Rez                                        ∂
  84.         {Src}SCSIVBLSample.r                ∂
  85.         -append                                ∂
  86.         -t APPL                                ∂
  87.         -i "{CIncludes}"                    ∂
  88.         -i "{RIncludes}"                    ∂
  89.         -o {targ}
  90.  
  91. "SCSI VBL Sample Fat" ƒƒ                    ∂
  92.         MakeFile                            ∂
  93.         {M68Objects}
  94.     Link                                    ∂
  95.         -t APPL                                ∂
  96.         {M68Objects}                        ∂
  97.         "{Libraries}"Runtime.o                ∂
  98.         "{Libraries}"Interface.o            ∂
  99.         -o {targ}
  100.  
  101. "SCSI VBL Sample Fat" ƒƒ                    ∂
  102.         "{Obj}SCSI VBLSample.xcoff"
  103.     MakePEF                                    ∂
  104.         {deps}                                ∂
  105.         -l InterfaceLib.xcoff=InterfaceLib    ∂
  106.         -l StdCLib.xcoff=StdCLib            ∂
  107.         -o {targ}                            ∂
  108.         -ft APPL -fc '????'
  109.  
  110. "{Obj}SCSI VBLSample.xcoff" ƒ                ∂
  111.         MakeFile                            ∂
  112.         {PPCObjects}
  113.     PPCLink                                    ∂
  114.         {PPCObjects}                        ∂
  115.         "{PPCLibraries}"StdCLib.xcoff        ∂
  116.         "{PPCLibraries}"InterfaceLib.xcoff    ∂
  117.         "{PPCLibraries}"PPCCRuntime.o        ∂
  118.         -main main ∂
  119.         -o {targ}
  120.  
  121. #
  122. # This builds a project resource file for the
  123. # Metrowerks DR3 environment. It is also
  124. # available as a stand-alone Makefile.
  125. #
  126. "SCSI VBLSample.µ.rsrc" ƒ                    ∂
  127.         MakeFile                            ∂
  128.         {Src}SCSIVBLSample.h                ∂
  129.         {Src}SCSIVBLSample.r
  130.     Rez                                        ∂
  131.         {Src}SCSIVBLSample.r                ∂
  132.         -append                                ∂
  133.         -t rsrc                                ∂
  134.         -c RSED                                ∂
  135.         -i "{CIncludes}"                    ∂
  136.         -i "{RIncludes}"                    ∂
  137.         -o {targ}
  138.